package com.bulkmail.sender.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

public class NewActionListener implements ActionListener {

	private MainFrame frame;

	public NewActionListener(MainFrame frame) {
		this.frame = frame;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		JFrame mainFrame = new MainFrame();
		mainFrame.setVisible(true);
		frame.dispose();
	}

}
